Documents for PDF, .NET Edition Documentation
LoadFonts(Byte[],Boolean) Method

GrapeCity.Documents.Common Assembly > GrapeCity.Documents.Text Namespace > FontCollection Class > LoadFonts Method : LoadFonts(Byte[],Boolean) Method
The byte array with the font data.
Specifies if all the registered fonts should be added to the fallback font collection.
Loads all fonts from a specified byte array into the collection.

Use the RegisterFont method if there is a font file.

Syntax
'Declaration
 
Public Overloads Function LoadFonts( _
   ByVal fontData() As System.Byte, _
   Optional ByVal addToFallbacks As System.Boolean _
) As System.Integer
public System.int LoadFonts( 
   System.byte[] fontData,
   System.bool addToFallbacks
)

Parameters

fontData
The byte array with the font data.
addToFallbacks
Specifies if all the registered fonts should be added to the fallback font collection.

Return Value

The number of loaded fonts.
See Also

Reference

FontCollection Class
FontCollection Members
Overload List